package cn.pconline.autoclub.util;

/**
 * 年月份工具类
 * @author fgs
 *
 */
public class YearMonth {

	private int year;
	private int month;
	
	
	public YearMonth(int year, int month) {
	    super();
	    this.year = year;
	    this.month = month;
    }
	
	public int getYear() {
    	return year;
    }
	public void setYear( int year ) {
    	this.year = year;
    }
	public int getMonth() {
    	return month;
    }
	public void setMonth( int month ) {
    	this.month = month;
    }
	
	public boolean equals(Object o){
		if(this==o){
			return true;
		}
		if(! (o instanceof YearMonth)){
			return false;
		}
		YearMonth ym = (YearMonth)o;
		if(ym.getYear()==this.getYear() && ym.getMonth() == this.getMonth()){
			return true;
		}
		return false;
	}
	
}
